awx: improve memory allocation handling
[openwrt.git] / package / busybox / patches / 340-lock_util.patch
index f832df7d91478b4ba53012937832b325c9ca9f7f..c1197e24e14ef6287226b49080508a5231223eb5 100644 (file)
@@ -73,7 +73,6 @@ diff -ruN busybox-1.3.1-old/miscutils/lock.c busybox-1.3.1/miscutils/lock.c
 +static void exit_unlock(int sig)
 +{
 +      flock(fd, LOCK_UN);
-+      unlink(file);
 +      exit(0);
 +}
 +
@@ -136,6 +135,7 @@ diff -ruN busybox-1.3.1-old/miscutils/lock.c busybox-1.3.1/miscutils/lock.c
 +
 +              return 0;
 +      }
++      return 0;
 +}
 +
 +#ifndef CONFIG_LOCK